import URI from 'urijs'
import store from 'store'

let token = Cookies.get('myToken'),
    menus = store.get('menus')

// 没有token则跳到登录页面
if (!token || !menus) {
  window.location = new URI(window.location.href).pathname('login.html').query({})
} else {
  window.location = new URI(window.location.href).pathname('/terminalManage/index.html').query({})
}